import 'package:json_annotation/json_annotation.dart';

part 'RDResponse.g.dart';

@JsonSerializable()
class RDResponse {
  int code;

  String msg;

  var data;

  RDResponse(this.code, this.msg, this.data);

  /// Connect the generated [_$PersonFromJson] function to the `fromJson`
  /// factory.
  factory RDResponse.fromJson(Map<String, dynamic> json) => _$RDResponseFromJson(json);

  /// Connect the generated [_$PersonToJson] function to the `toJson` method.
  Map<String, dynamic> toJson() => _$RDResponseToJson(this);

  @override
  String toString() {
    return 'RDResponse{code: $code, msg: $msg, data: $data}';
  }
}

